#include <iostream>
#include <stdlib.h>

using namespace std;

class User{
    private:
        int age;
        string name;
    public:
        User(){
            cout << "constructing using default constructor" << endl;
        }
        User(string name, int age) {
            this -> name = name;
            this -> age = age;
            cout << "constructing using argument constructor" << endl;
        }
        int getAge(){
            return this -> age;
        }
        string getName(){
            return this -> name;
        }
        string toString(){
            return "user(name=" + getName() + ",age=" + to_string(getAge()) + ")";
        }
};



int main(){
    cout << "hello world " << endl;
    User u1;
    cout << u1.toString() << endl;

    User u2("abc",22);
    cout << u2.toString() << endl;

    return 0;
}